
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.MedicineStorageDetail;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage MedicineStorageDetail entities.
 * 
 */
public interface MedicineStorageDetailDAO extends JpaDao<MedicineStorageDetail> {

	/**
	 * JPQL Query - findMedicineStorageDetailByTraceCode
	 *
	 */
	public Set<MedicineStorageDetail> findMedicineStorageDetailByTraceCode(String traceCode) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByTraceCode
	 *
	 */
	public Set<MedicineStorageDetail> findMedicineStorageDetailByTraceCode(String traceCode, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailById
	 *
	 */
	public MedicineStorageDetail findMedicineStorageDetailById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailById
	 *
	 */
	public MedicineStorageDetail findMedicineStorageDetailById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByIsUseout
	 *
	 */
	public Set<MedicineStorageDetail> findMedicineStorageDetailByIsUseout(Integer isUseout) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByIsUseout
	 *
	 */
	public Set<MedicineStorageDetail> findMedicineStorageDetailByIsUseout(Integer isUseout, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByTraceCodeContaining
	 *
	 */
	public Set<MedicineStorageDetail> findMedicineStorageDetailByTraceCodeContaining(String traceCode_1) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByTraceCodeContaining
	 *
	 */
	public Set<MedicineStorageDetail> findMedicineStorageDetailByTraceCodeContaining(String traceCode_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByIsPutaway
	 *
	 */
	public Set<MedicineStorageDetail> findMedicineStorageDetailByIsPutaway(Integer isPutaway) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByIsPutaway
	 *
	 */
	public Set<MedicineStorageDetail> findMedicineStorageDetailByIsPutaway(Integer isPutaway, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByPrimaryKey
	 *
	 */
	public MedicineStorageDetail findMedicineStorageDetailByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageDetailByPrimaryKey
	 *
	 */
	public MedicineStorageDetail findMedicineStorageDetailByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllMedicineStorageDetails
	 *
	 */
	public Set<MedicineStorageDetail> findAllMedicineStorageDetails() throws DataAccessException;

	/**
	 * JPQL Query - findAllMedicineStorageDetails
	 *
	 */
	public Set<MedicineStorageDetail> findAllMedicineStorageDetails(int startResult, int maxRows) throws DataAccessException;

}